package com.lzy.dao;

import com.lzy.entity.SysUserRoleEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * 用户和角色关联表
 * 
 * @author lyw
 * @email lyw@gmail.com
 * @date 2023-02-02 17:06:20
 */
@Mapper
public interface SysUserRoleDao extends BaseMapper<SysUserRoleEntity> {
  IPage<Map<String, Object>> selectPageList(Page<Map<String, Object>> result, @Param(Constants.WRAPPER) LambdaQueryWrapper lqw);

  void batchInsert(Long userId, Collection<?> list);
}
